﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sealight.Core.Domain
{
   public class OrderNoteEntity:BaseEntity
    {
        /// <summary>
        /// Gets or sets the order note identifier
        /// </summary>
        public virtual Guid OrderNoteID { get; set; }

        /// <summary>
        /// Gets or sets the order identifier
        /// </summary>
        public virtual OrderEntity Order { get; set; }

        /// <summary>
        /// Gets or sets the note
        /// </summary>
        public virtual string Note { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the customer can see a note
        /// </summary>
        public virtual bool DisplayToUser { get; set; }

        /// <summary>
        /// Gets or sets the date and time of order note creation
        /// </summary>
        public virtual DateTime CreatedDate { get; set; }

        public virtual Sealight.Core.DataAdapter.order_note ToDataAdapter()
        {
            return new DataAdapter.order_note {id=this.OrderNoteID, created_date=this.CreatedDate, display_to_user=this.DisplayToUser, note=this.Note, order=this.Order.ToDataAdapter() };
        }
    }
}
